"""
Project Name : api_automation_framework
File Name : cookies-delete.py
Author : lldhsds
Date : 2024/12/29 11:32
Description: /cookies/delete, 删除由查询字符串提供的 cookie(s)，并重定向到 cookie 列表。
"""

import requests

def cookies_delete() -> None:
    url = 'https://httpbin.org/cookies/delete'
    headers = {'Accept': 'text/plain'}
    data = {'freeform': 'abc123'}
    response = requests.get(url, headers=headers, params=data)
    print(response.status_code)
    print(response.json())
    print(response.headers)

cookies_delete()
